package cn.bonoon.kernel.support.models;

import java.io.Serializable;

import cn.bonoon.kernel.web.annotations.components.AsHidden;

public abstract class ObjectEditor implements Serializable{

	/**
	 * 
	 */
	private static final long serialVersionUID = -5345747900750418189L;
	
	@AsHidden
	protected Long id;

	public Long getId() {
		return id;
	}

	public void setId(Long id) {
		this.id = id;
	}

	public boolean isNew() {
		return null == id || id <= 0L;
	}
}
